﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace PosClient.Model
{
    [Index("uk_user_id", "Username,Status", true)]
    [Table(Name="t_user")]
    public class User
    {
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        [Column(IsPrimary = true)]
        public string Username { get; set; }

        public string Password { get; set; }

        public string NickName { get; set; }

        public int Status { get; set; }

        public DateTime LastLoginTime { get; set; }
    }
}
